package com.education.myproject;

import android.app.Application;

import com.education.myproject.config.DbConfig;
import com.litesuits.orm.LiteOrm;

/**
 * Created by zhonghang on 2016/10/4.
 */

public class App extends Application {
    private static LiteOrm liteOrm;
    private static App app;
    //加条注释
    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        if (liteOrm == null) {
            liteOrm = LiteOrm.newSingleInstance(this, DbConfig.DB_NAME);
        }
//        liteOrm.setDebugged(true); // open the log
    }

    public static App getApp() {
        return app;
    }

    public static LiteOrm getLiteOrm() {
        return liteOrm;
    }
}
